package com.wpp.service.impl;

import com.wpp.dao.ResumeDao;
import com.wpp.pojo.ResumePO;
import com.wpp.service.IResumeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author by wpp25
 * @Classname ResumeServiceImpl
 * @Description
 * @Date 2020/10/23 23:17
 */
@Service
public class ResumeServiceImpl implements IResumeService {

    @Autowired
    private ResumeDao resumeDao;

    @Override
    public List<ResumePO> findAll() {
        return resumeDao.findAll();
    }

    @Override
    public void addOne(ResumePO resumePO) {
        resumeDao.save(resumePO);
    }

    @Override
    public void editOne(ResumePO resumePO) {
        resumeDao.save(resumePO);
    }

    @Override
    public void deleteById(Long id) {
        resumeDao.deleteById(id);
    }
}
